package com.guigu.eduservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 检测报告图片表（存储检测过程中的证据图片）
 * </p>
 *
 * @author Xiaosong
 * @since 2025-10-13
 */
@TableName("detection_report_image")
public class DetectionReportImage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 图片唯一标识
     */
    @TableId(value = "image_id", type = IdType.AUTO)
    private Long imageId;

    /**
     * 关联检测报告表report_id（一个报告可对应多张图片）
     */
    private Long reportId;

    /**
     * 图片URL（检测过程中拍摄的证据图片地址）
     */
    private String imageUrl;

    /**
     * 图片描述（说明图片内容，如"液压泵漏油现场照片"）
     */
    private String imageDesc;

    /**
     * 排序号（控制图片在报告中的展示顺序）
     */
    private Integer sort;

    /**
     * 记录创建时间
     */
    private LocalDateTime createTime;

    public Long getImageId() {
        return imageId;
    }

    public void setImageId(Long imageId) {
        this.imageId = imageId;
    }

    public Long getReportId() {
        return reportId;
    }

    public void setReportId(Long reportId) {
        this.reportId = reportId;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageDesc() {
        return imageDesc;
    }

    public void setImageDesc(String imageDesc) {
        this.imageDesc = imageDesc;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "DetectionReportImage{" +
            "imageId = " + imageId +
            ", reportId = " + reportId +
            ", imageUrl = " + imageUrl +
            ", imageDesc = " + imageDesc +
            ", sort = " + sort +
            ", createTime = " + createTime +
        "}";
    }
}
